﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VINETLIFE;
using VINETLIFE.BL;

namespace VINETLIFE.Module
{
    public partial class ucVnBestSellerProducts : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                rptBestSellerDataSource();
        }

        private void rptBestSellerDataSource()
        {
            rptBestSeller.DataSource = new cmsProductBL().GetByIsBestbuy(10,true);
            rptBestSeller.DataBind();
        }
        public string FriendlyUrl(string s)
        {
            return Ultility.Change_AV(s);
        }
    }
}